package com.xinghou.platform.model.main;

import com.xinghou.platform.entity.req.BaseReq;

/**
 * Notice entity. @author MyEclipse Persistence Tools
 */

public class Notice extends BaseReq implements java.io.Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = -2300683038132250356L;
	// Fields
	private String NoticeId;
	private String receiverId;
	private String title;
	private String text;
	private String attachId;
	private String jumpUrl;
	private String jumpNativePage;
	private String status;
	private String createTime;
	private String pubTime;
	private String type;
	private String platform;
	private String from;
	private String operator;
	private String messagecode;
	private String url;
	private String jpushid;
	private String citypush;
	private Object content;

	public String getJpushid() {
		return jpushid;
	}

	public Notice setJpushid(String jpushid) {
		this.jpushid = jpushid;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public Notice setUrl(String url) {
		this.url = url;
		return this;
	}

	public String getType() {
		return type;
	}

	public Notice setType(String type) {
		this.type = type;
		return this;
	}

	public String getCreateTime() {
		return createTime;
	}

	public Notice setCreateTime(String createTime) {
		this.createTime = createTime;
		return this;
	}

	public String getPubTime() {
		return pubTime;
	}

	public Notice setPubTime(String pubTime) {
		this.pubTime = pubTime;
		return this;
	}

	public String getNoticeId() {
		return NoticeId;
	}

	public Notice setNoticeId(String noticeId) {
		NoticeId = noticeId;
		return this;
	}

	public String getStatus() {
		return status;
	}

	public Notice setStatus(String status) {
		this.status = status;
		return this;
	}

	public Object getContent() {
		return content;
	}

	public Notice setContent(Object content) {
		this.content = content;
		return this;
	}




	public String getJumpNativePage() {
		return jumpNativePage;
	}

	public Notice setJumpNativePage(String jumpNativePage) {
		this.jumpNativePage = jumpNativePage;
		return this;
	}

	public String getJumpUrl() {
		return jumpUrl;
	}

	public Notice setJumpUrl(String jumpUrl) {
		this.jumpUrl = jumpUrl;
		return this;
	}

	public String getMessagecode() {
		return messagecode;
	}

	public Notice setMessagecode(String messagecode) {
		this.messagecode = messagecode;
		return this;
	}

	public String getOperator() {
		return operator;
	}

	public Notice setOperator(String operator) {
		this.operator = operator;
		return this;
	}

	public String getFrom() {
		return from;
	}

	public Notice setFrom(String from) {
		this.from = from;
		return this;
	}




	public static long getSerialVersionUID() {
		return serialVersionUID;
	}


	public String getText() {
		return text;
	}

	public Notice setText(String text) {
		this.text = text;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public Notice setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getAttachId() {
		return attachId;
	}

	public Notice setAttachId(String attachId) {
		this.attachId = attachId;
		return this;
	}

	public String getPlatform() {
		return platform;
	}

	public Notice setPlatform(String platform) {
		this.platform = platform;
		return this;
	}

	public String getReceiverId() {
		return receiverId;
	}

	public Notice setReceiverId(String receiverId) {
		this.receiverId = receiverId;
		return this;
	}

	public static Notice instance(){
		return new Notice();
	}

	public JpushContent toJpushContent() {
		JpushContent jpushContent = new JpushContent();
		jpushContent.setType(this.getType());
		jpushContent.setMessagecode(this.getMessagecode());
		jpushContent.setTitle(this.getTitle());
		jpushContent.setContent(this.getContent());
		return jpushContent;

	}

	public String getCitypush() {
		return citypush;
	}

	public Notice setCitypush(String citypush) {
		this.citypush = citypush;
		return this;
	}
/*private String title;
      private String messagecode;
      private String jumppage;
      private String attachid;*/
	/*public NoticeResp toNoticeResp(String messageCode) {
		NoticeResp resp = new NoticeResp(String.valueOf(this.getType()),this.getTitle(),messageCode);
		resp.setFrom("1");
		MessageContent messageContent  = new MessageContent();
		messageContent.setJumppage(this.getJumpNativePage());
		messageContent.setAttachid(String.valueOf(this.getAttachId()));
		messageContent.setText(this.getText());


		resp.setO(messageContent);
		return resp;
	}
*/
}